/*
 * @Author: thinker_cy
 * @Date: 2025-07-02 16:42:04
 * @FilePath: \weimai-admin\src\main.js
 * @Description: 
 */
import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 导入Element Plus中文语言包
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import '@/styles/index.css'
import App from './App.vue'
import router from './router'
import './permission'
// 导入消息插件
import MessagePlugin from '@/hooks/useMessage'
// 导入Pagination组件
import Pagination from '@/components/Pagination/index.vue'

const app = createApp(App)

// 使用Element Plus并配置中文语言
app.use(ElementPlus, {
  locale: zhCn
})
app.use(router)
// 使用消息插件
app.use(MessagePlugin)
// 全局注册Pagination组件
app.component('Pagination', Pagination)
app.mount('#app')
